
cc.Class({
    extends: cc.Component,

    properties: {
        
    },

    onCollisionEnter(other, self) {
        // console.log('----onCollisionEnter----');
    },

    update (dt) {
        this.node.x -= 10;
        if (this.node.x < 0) {
            this.node.x = 640;
        }
    },
});
